package com.lysj.print.print.domain;

import com.lysj.admin.utils.spring.foundation.base.BaseEntity;
import com.lysj.admin.utils.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author Created by drj on 2019-03-15 16:40:54
 * @description 打印轮训数据
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "lysj_printer_printer_rotation")
public class PrinterRotation extends BaseEntity {


    @Getter
    public enum Status {
        UNPRINT(1, "未打印"),
        SUCCESSPRINT(2, "打印成功");
        private Integer code;

        private String status;

        Status(Integer code, String status) {
            this.code = code;
            this.status = status;
        }
    }

    @Getter
    public enum DataType {
        FEIE(1, "飞鹅"),
        OTHER(2, "其他");
        private Integer code;

        private String status;

        DataType(Integer code, String status) {
            this.code = code;
            this.status = status;
        }
    }

    private String printerId; //打印机id

    @Column(columnDefinition = "TEXT")
    private String printInfo;

    private Integer dataType;//数据类型

    private Integer status;//状态
}